package top.healthylife.gateway.platform.baihang.api.api.bankcardcheck;


import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import top.healthylife.gateway.core.service.ParentFace;
import top.healthylife.gateway.dto.annotation.ApiServiceExplain;
import top.healthylife.gateway.platform.baihang.api.util.BaiHangHttpUtil;
import top.healthylife.gateway.platform.baihang.dto.bankcardcheck.bbas0106.req.BHReqBCCertNoCheckDto;
import top.healthylife.gateway.platform.baihang.dto.bankcardcheck.bbas0106.res.BHResBCCertNoCheckDto;

/**
 * 银行卡身份证核验
 * @author gwx
 * @date 2021/9/6
 */
@Slf4j
@Service
@ApiServiceExplain(price = 20 , apiName = "银行卡身份证核验" , info = "银行卡身份证核验")
public class BHBCCertNoCheckApi implements ParentFace<BHReqBCCertNoCheckDto, BHResBCCertNoCheckDto> {

    private static final String PRODUCT_CODE = "BBAS0106";

    @Override
    public BHResBCCertNoCheckDto execute(BHReqBCCertNoCheckDto reqDto){
        return BaiHangHttpUtil.httpPostRequest(reqDto,PRODUCT_CODE, BHResBCCertNoCheckDto.class);
    }
}
